-- GENERATED SPELL FOR [Tel'athion the Impure] --


function spell0_17359(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(15736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17359', 613, 1)
end

function spell1_17359(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13339,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17359', 660, 1)
end

function spell2_17359(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_17359', 8327, 1)
end

function spell3_17359(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17359', 7000, 1)
end

function Sorts_17359(pUnit, Event)
local choix_sorts_17359 = math.random(0, 3)
if choix_sorts_17359 == 0 then
pUnit:RegisterEvent('spell0_17359', 1, 1)
end
if choix_sorts_17359 == 1 then
pUnit:RegisterEvent('spell1_17359', 1, 1)
end
if choix_sorts_17359 == 2 then
pUnit:RegisterEvent('spell2_17359', 1, 1)
end
if choix_sorts_17359 == 3 then
pUnit:RegisterEvent('spell3_17359', 1, 1)
end
end

function mob17359_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17359', math.random(1500, 3000), 1)
end

function mob17359_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17359_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17359_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17359, 1, 'mob17359_Action')
RegisterUnitEvent(17359, 2, 'mob17359_Leave')
RegisterUnitEvent(17359, 3, 'mob17359_Kill')
RegisterUnitEvent(17359, 4, 'mob17359_Die')
